import _fetch from './require'

function getPhoneCode(data) {
  return  _fetch({
        url:'/sendsms',
            method:'post',
            data:data
    })
}
function toRegister(data) {
  return  _fetch({
        url:'/register',
            method:'post',
            data:data
    })
}




// 注册api  就将注册封装成一个方法

export {getPhoneCode,toRegister}